package com.lh.job.task;

import com.lh.job.dao.DataFormMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author FH
 * @ClassName: DataStatisFormTask
 * @Description: (数据统计)
 * @date: 2020-05-25 10:41
 */

@Component("dataStatisFormTask")
@Slf4j
public class DataStatisFormTask  implements ITask{

    @Autowired
    private DataFormMapper dataFormMapper;

    @Override
    public void run(String params) {
        try {
            dataFormMapper.insertDataForm();
            dataFormMapper.insertDataShopForm();
        }catch (Exception e){
            e.printStackTrace();
            log.error("数据统计插入失败!!!");
        }
    }
}
